<template>
  <!--确认收货-->
  <Modal v-model="completedPop" class-name="vertical-center-modal" :mask-closable="false" :closable="false">
    <div slot="header" class="head">
      <div class="pop-tit ff-bold">{{ $t('user.confirmReceipt') }}</div>
      <div></div>
    </div>
    <div class="content">
      <div class="text ff-bold">{{ $t("user.confirmReceiptPrompt") }}</div>
    </div>
    <div slot="footer" class="footer-sty">
      <div></div>
      <div class="handle-sty ff-bold">
        <div class="handle-btn" @click="completedPop = false">{{ $t('pay.cancel') }}</div>
        <div class="handle-btn confirm-btn" @click="onExpressCompleted">{{ $t('personal.Search-confirm') }}</div>
      </div>
    </div>
  </Modal>
</template>
<script>

export default ({
  data() {
    return {
      completedPop: false,
      expressOrderNo: ''
    }
  },
  methods: {
    open(expressOrderNo) {
      this.expressOrderNo = expressOrderNo;
      this.completedPop = true;
    },
    closeMet() {
      this.completedPop = false;
    },
    onExpressCompleted() {
      this.$emit('expressCompletedMet', this.expressOrderNo);
    }
  }
})
</script>
<style lang="less" scoped>
:deep(.ivu-modal-content) {
  border-radius: 12px;

  .ivu-modal-header {
    border: none;
    padding: 32px;
  }

  .ivu-modal-body {
    padding: 0 32px;
  }

  .ivu-modal-footer {
    padding: 32px;
    border: none;
  }
}

.vertical-center-modal {
  display: flex;
  align-items: center;
  justify-content: center;

  .head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .pop-tit {
      font-weight: 600;
      font-size: 24px;
      color: #1E1714;
      line-height: 28px;
    }

    .close {
      cursor: pointer;
    }
  }

  .content {
    .text {
      font-weight: 600;
      font-size: 18px;
      color: #767B93;
      line-height: 24px;
    }
  }

  .footer-sty {
    display: flex;
    justify-content: space-between;

    .handle-sty {
      display: flex;
      align-items: center;
      gap: 24px;

      .handle-btn {
        min-width: 112px;
        height: 44px;
        border-radius: 8px 8px 8px 8px;
        border: 1px solid #E5E5E5;
        font-weight: 600;
        font-size: 16px;
        color: #1E1714;
        line-height: 44px;
        text-align: center;
        cursor: pointer;
      }

      .confirm-btn {
        background-color: #1E1714;
        color: #FFFFFF;
        border: none;
      }
    }
  }
}
</style>
